﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>我的</title>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="css/ydui.css?v=1.1.4" rel="stylesheet" />
    <script src="js/ydui.flexible.js"></script>
	<link rel="stylesheet" type="text/css" href="css/all.css?v=20180302"/>
    <style type="text/css">
        .m-grids-4:before{border:none;}
    </style>
</head>
	<body ms-controller="userview" class="ms-controller">
    <section class="g-flexview">
        <header class="m-navbar">
            <a onclick="history.back()" class="navbar-item"><i class="back-ico"></i></a>
            <div class="navbar-center"><span class="navbar-title">我的</span></div>
        </header>
        <section class="g-scrollview">
            <a class="person-head clearfix" style="display:block;"  href="user/setting.html">
				<!--<img src="../Admin/CSS/login/qrcode_for_gh_f72d961fdd49_430.jpg"/>-->
                <img ms-attr="{src:@UserImg}" />
				<div class="content-text">
					<p>{{@ModelData.TrueName?@ModelData.TrueName:@ModelData.NickName}}</p>
					<p>{{@ModelData.Telephone}}</p>
				</div>
				<div class="cell-arrow fr iconright">
					
				</div>
            </a>

            <div class="m-grids-4">
                <a href="order/list.html?status=0" class="grids-item">
                    <div class="grids-icon"><i class="iconfont icon-daifukuan" style="color:#666;"></i></div>
                    <div class="grids-txt"><span>待付款</span></div>
                </a>
                <a href="order/list.html?status=1" class="grids-item">
                    <div class="grids-icon"><i class="iconfont icon-daifahuo" style="color:#666;"></i></div>
                    <div class="grids-txt"><span>待发货</span></div>
                </a>
                <a href="order/list.html?status=2" class="grids-item">
                    <div class="grids-icon"><i class="iconfont icon-daishouhuo" style="color:#666;"></i></div>
                    <div class="grids-txt"><span>待收货</span></div>
                </a>
                <a href="order/list.html" class="grids-item">
                    <div class="grids-icon"><i class="iconfont icon-dingdan1" style="color:#666;"></i></div>
                    <div class="grids-txt"><span>我的订单</span></div>
                </a>
            </div>
            <div class="m-cell noborder" style="margin-top:10px;">
                <a class="cell-item" href="shequ/index.html">
                    <div class="cell-left"><i class="iconfont icon-shequ" style="color:#ff6a00;"></i>我的社区</div>
                    <div class="cell-right cell-arrow"></div>
                </a>
                <a class="cell-item" href="shequ/index.html">
                    <div class="cell-left"><i class="iconfont icon-shequ" style="color:#ff6a00;"></i>社区管理</div>
                    <div class="cell-right cell-arrow"></div>
                </a>
            
            </div>
            <div class="m-cell noborder" style="margin-top:10px;">
                <a class="cell-item" href="user/kefu.html">
                    <div class="cell-left"><i class="iconfont icon-lianxikefu" style="color:#f6d20a;"></i>联系客服</div>
                    <div class="cell-right cell-arrow"></div>
                </a>             
            </div>
            
        </section>
        <footer class="m-tabbar">
            <a class="tabbar-item" href="index.html">
                <span class="tabbar-icon">
                    <i class="iconfont icon-home_light"></i>
                </span>
                <span class="tabbar-txt">首页</span>
            </a>
            <a href="list/classify.html" class="tabbar-item">
                <span class="tabbar-icon">
                    <i class="iconfont icon-fenlei1"></i>
                </span>
                <span class="tabbar-txt">搜索</span>
            </a>
            <a href="shequ/index.html" class="tabbar-item">
                <span class="tabbar-icon">
                    <i class="iconfont icon-shequ"></i>
                </span>
                <span class="tabbar-txt">社区</span>
            </a>
            <a class="tabbar-item  tabbar-active">
                <span class="tabbar-icon">
                    <i class="iconfont icon-my_light"></i>
                </span>
                <span class="tabbar-txt">我的</span>
            </a>
        </footer>
    </section>		


        <script src="https://cdn.bootcss.com/jquery/2.2.0/jquery.min.js"></script>
        <script src="js/ydui.js"></script>
        <script src="js/avalon.mobile.min.js"></script>
        <script src="js/ComFunJS.js?v=20180331"></script>
        <script>
            
        var model = avalon.define({
            $id: "userview",
            ModelData: {},
            UserImg: "",
            GetListData: function () {
                YDUI.dialog.loading.open("努力加载中...");
                $.getJSON("/api/user/userinfo", function (r) {
                    YDUI.dialog.loading.close();
                    if (r.error == "") {
                        model.ModelData = r.result;
                        if (model.ModelData.UserImg) {
                            if (model.ModelData.UserImg.indexOf("http") == 0) {
                                model.UserImg = model.ModelData.UserImg;
                            } else {
                                model.UserImg = ComFunJS.FilePath(model.ModelData.UserImg, "120/120");
                            }
                        } else {
                            model.UserImg = "../img/backgo.jpg";
                        }
                    }
                })
                
            }

        });
        avalon.ready(function () {
            if (ComFunJS.isLogin(true)) {
                model.GetListData();
            }
        })

        </script>


	</body>
</html>
